public class FactoryCommand
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
FactoryCommand.Character
字符
|
static class |
FactoryCommand.ChineseFont
汉字
|
static class |
FactoryCommand.printerMode
切换模式
|
static class |
FactoryCommand.VidPid
PID VID
|
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) java.lang.String |
TAG |
| 构造器和说明 |
|---|
FactoryCommand() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
blueToothName(java.lang.String name)
设置蓝牙名称
|
static byte[] |
blueToothPIN(java.lang.String pin)
设置蓝牙Pin码
|
static byte[] |
changPrinterMode(FactoryCommand.printerMode mode)
更换打印机模式
|
static byte[] |
checkPower()
查询电量
|
static byte[] |
printSelfTest(FactoryCommand.printerMode mode)
打印自检页
|
static byte[] |
setFont(FactoryCommand.Character width,
FactoryCommand.Character height,
FactoryCommand.ChineseFont chineseWidth,
FactoryCommand.ChineseFont chineseHeight)
设置字体
|
static byte[] |
setGateway(java.lang.String gateway)
设置网口 Gate way
|
static byte[] |
setIP(java.lang.String ip)
设置网口ip
|
static byte[] |
setMac(byte[] mac)
设置mac地址
|
static byte[] |
setMask(java.lang.String mask)
设置网口 mask
|
static byte[] |
setPrinterEscPidVid(FactoryCommand.VidPid vid,
FactoryCommand.VidPid pid)
设置小票PID VID
|
static byte[] |
setPrinterTscPidVid(FactoryCommand.VidPid vid,
FactoryCommand.VidPid pid)
设置标签模式PID VID
|
public static byte[] changPrinterMode(FactoryCommand.printerMode mode)
public static byte[] setPrinterEscPidVid(FactoryCommand.VidPid vid, FactoryCommand.VidPid pid)
public static byte[] setPrinterTscPidVid(FactoryCommand.VidPid vid, FactoryCommand.VidPid pid)
public static byte[] setFont(FactoryCommand.Character width, FactoryCommand.Character height, FactoryCommand.ChineseFont chineseWidth, FactoryCommand.ChineseFont chineseHeight)
width - 字符宽度height - 字符高度chineseWidth - chineseHeight - public static byte[] checkPower()
public static byte[] printSelfTest(FactoryCommand.printerMode mode)
public static byte[] blueToothName(java.lang.String name)
name - public static byte[] blueToothPIN(java.lang.String pin)
name - public static byte[] setIP(java.lang.String ip)
ip - public static byte[] setMac(byte[] mac)
mac - public static byte[] setMask(java.lang.String mask)
mask - public static byte[] setGateway(java.lang.String gateway)
mask -